package admin_handler

import (
	"go-gin-api/internal/pkg/core"
)

type detailRequest struct{}

type detailResponse struct {
	Username string
	Nickname string
}

// Detail 个人信息
// @Summary 个人信息
// @Description 个人信息
// @Tags API.admin
// @Accept json
// @Produce json
// @Param Request body detailRequest true "请求信息"
// @Success 200 {object} detailResponse
// @Failure 400 {object} code.Failure
// @Router /api/admin/info [get]
func (h *handler) Detail() core.HandlerFunc {
	return func(c core.Context) {

		resp := new(detailResponse)
		resp.Nickname = "zhang san"
		resp.Username = "hello world"

		c.Payload(resp)
	}
}
